import request from '@/utils/request'

// 查询医疗机构列表
export function listMedicalInstitutions(query) {
  return request({
    url: '/medical/MedicalInstitutions/list',
    method: 'get',
    params: query
  })
}

// 查询医疗机构详细
export function getMedicalInstitutions(id) {
  return request({
    url: '/medical/MedicalInstitutions/' + id,
    method: 'get'
  })
}

// 新增医疗机构
export function addMedicalInstitutions(data) {
  return request({
    url: '/medical/MedicalInstitutions',
    method: 'post',
    data: data
  })
}

// 修改医疗机构
export function updateMedicalInstitutions(data) {
  return request({
    url: '/medical/MedicalInstitutions',
    method: 'put',
    data: data
  })
}

// 删除医疗机构
export function delMedicalInstitutions(id) {
  return request({
    url: '/medical/MedicalInstitutions/' + id,
    method: 'delete'
  })
}
